import { createStore } from 'vuex'

export default createStore({
  state: {
    playList:[{
      al:{
        picUrl:'https://p1.music.126.net/YbLMaE_GZfoFE4-iB0pM7g==/109951166525430628.jpg'
      }
    }],
    index:0
  },
  mutations: {
    setPlayList(state,music){
      state.playList=music;
    },
    setIndex(state,index){
      state.index=index;
    }
  },
  getters: {
  },
  actions: {
  },
  modules: {
  }
})
